home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8265 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
  4. Subject: Re: Help for using bcopy function
  5. Date: Sat, 02 Mar 96 15:06:36 GMT
  6. Organization: none
  7. Message-ID: <825779196snz@genesis.demon.co.uk>
  8. References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se> <31372F78.167EB0E7@pia.bt.co.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <31372F78.167EB0E7@pia.bt.co.uk>
  15.            alwyn@pia.bt.co.uk "Alwyn Thomas" writes:
  16.  
  17. >Elias Martenson wrote:
  18. >
  19. >> bcopy() is not standard AFAIK. Use memcpy instead.
  20. >
  21. >
  22. >It's certainly standard on SunOS.
  23.  
  24. That hardly makes it standard. It is not even standard across Unix platforms.
  25. memcpy and memmove are part of ANSI C which means (comp.lang.c readers
  26. can skip this!) they are supported on all POSIX.1 compliant systems.
  27.  
  28. >What the enquirer needs to do is to add the line:
  29. >
  30. >extern bcopy();
  31.  
  32. Only if his system happens to support bcopy. It would be more sensible to
  33. change to memmove or possibly memcpy.
  34.  
  35. -- 
  36. -----------------------------------------
  37. Lawrence Kirby | fred@genesis.demon.co.uk
  38. Wilts, England | 70734.126@compuserve.com
  39. -----------------------------------------
  40.